<%@ page language="java" pageEncoding="utf-8"%>
<%@page import="orest.back.membermanage.RegisterUserHandler"%>
<%@page import="net.ssta.core.db.RecordSet"%>
<%@page import="net.ssta.core.db.Record"%>
<%@page import="net.ssta.core.web.HTMLGenerator"%>
<%@page import="orest.back.userneeds.UserNeedsHandler"%>
<%@page import="net.ssta.common.LoginUser"%>
<%@page import="orest.front.achieve.AchieveHandler"%>
<%@page import="net.ssta.common.StyleConstants"%>


<%
	String path = request.getContextPath();
    
    String userId=LoginUser.getUserId();
    
    Record r=RegisterUserHandler.getUserById(userId);
    UserNeedsHandler handler=new UserNeedsHandler();
    RecordSet zdxx= AchieveHandler.getNewEnergyClassList();
    RecordSet province=handler.getAllProvince();
    if(r==null){
    	r=new Record();
    }
    
%>



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>

    <META http-equiv=Content-Type content="text/html; charset=utf-8" />
    <META http-equiv=x-ua-compatible content=ie=7 />
    <META content="MSHTML 6.00.6000.17107" name=GENERATOR />
    <link href="<%=path%>/<%=StyleConstants.stylePath %>/css/layout.css" rel="stylesheet" type="text/css" />
	<link href="<%=path%>/<%=StyleConstants.stylePath %>/css/user.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=path%>/includes/styleBase/js/jquery.js"></script>
 
<title>用户信息</title>
 



<style>
body, html {
	margin:0;
	padding:0;
}
	.ctable{
		font-size:12px;
		cellPadding:0px;
		cellSpacing:0px;
		background-color:#F6F9FF;
		
		} 
 
		.ctable tr{
		height:24px; 
		} 
		.ctable tr td{ 
		border:0px;
		border-top:1px #99bbe8 solid; 
		border-right:1px #99bbe8 solid;
		padding:5px; 
		vertical-align:middle;
		}
</style>

 
 
 
</head>
<body>

<%@include file="../common1/toplogin.jsp"%>    
<%@include file="../common1/topbanner.jsp"%> 
<%@include file="../common1/topmenu.jsp"%> 



<div id="contentmain">
 
<%@include file="include/baseConfig.jsp"%> 



 <div id="content_right">
       <jsp:include   page="./include/baseTop.jsp"    flush="true">   
		      <jsp:param    name="open"    value="1"    />   
		</jsp:include>
				
   
 
      
  <table cellpadding="0" align="center" cellspacing="0" border="0" class="ctable" width=90% style="border-left:1px solid #99bbe8;border-bottom:1px solid #99bbe8;border-right:0px solid red;">
    <tr >
      <td width="30%">用户名：</td>
      <td >
      	  <%=r.getString("LOGINNAME") %> &nbsp;
      </td>
     </tr>
     
    
     <tr >
      <td>性别：</td>
      <td>
	   <%=r.getString("SEX","")%> &nbsp;
	  </td>
    </tr>
    
    
     <tr >
      <td>真实姓名：</td>
      <td>
	  	 <%=r.getString("FULLNAME","") %>  &nbsp;
	  </td>
    </tr>
    
        
     <tr >
      <td>Email：</td>
      <td>
	  	  <%=r.getString("EMAIL","") %>  &nbsp;
	  </td>
    </tr>
    
        
        
     <tr >
      <td>出生年月：</td>
      <td>
	  	  <%String birthDay=r.getString("BIRTHDAY","");
        	   if(birthDay.length()>10){
        		   birthDay=birthDay.substring(0,10);
        	 } %> 
         <%=birthDay %>   &nbsp;
	  </td>
    </tr>
    
    
            

    <tr >
      <td>所在行业：</td>
      <td>
	<%
          for(int i=0;i<zdxx.size();i++){
        	  Record tmp=zdxx.get(i);
        	  if(tmp.getString("OPTIONVALUE","").equals(r.getString("INDUSTRY",""))){
        	      out.println(tmp.getString("OPTIONNAME",""));
        	      break;
        	  }
          }
      %>  &nbsp;
	  </td>
    </tr>
    
    
    
     <tr >
      <td>工作单位：</td>
      <td>
	  	 <%=r.getString("WORKORG","") %> 
	  &nbsp; </td>
    </tr>
    
 
    
    
     <tr >
      <td>电话：</td>
      <td>
	  	 <%=r.getString("TELEPHONE","") %> 
	  &nbsp; </td>
    </tr>
    
    <tr >
      <td>所在省市：</td>
      <td> 
      <%
          for(int i=0;i<province.size();i++){
        	  Record tmp=province.get(i);
        	  if(tmp.getString("PROVINCE_ID","").equals(r.getString("PROVINCE",""))){
        	      out.println(tmp.getString("PROVINCE_NAME",""));
        	      break;
        	  }
          }
      %> &nbsp;
   	  </td>
    </tr>
    
     <tr >
      <td>会员类型：</td>
      <td>
	  	 <%if(!"".equals(r.getString("MEMBERTYPE",""))){
	  		 out.println("0".equals(r.getString("MEMBERTYPE",""))?"个人":"企业" );
	  	   }
	  	 %>&nbsp;
	  </td>
    </tr>
    
  </table>
 
 </div>
 
 </div>
 
 <%@include file="../../common1/bottom.jsp"%>    
</body> 
</html>